import type { Link } from "@/types/connect";
import { defineStore } from "pinia";

const useLinkStore = defineStore('app-link-store', {
    state: () => ({
        links: [] as Link[]
    }),
    // actions: {
    //     pushLink(link: Link) {
    //         this.links.push(link);
    //     }
    // },
    persist: {
        storage: localStorage
    }
})

export default useLinkStore;